package com.walle.ak47.commons.jetty;

import java.util.Map;

import org.eclipse.jetty.deploy.WebAppDeployer;

public class JettyWebAppDeployer extends WebAppDeployer
{
	public static String webAppDir = "webapps" ;
	
	@Override
	public void setWebAppDir(String dir)
	{
		super.setWebAppDir(dir);
		webAppDir = dir ;
	}

	public void setAttributes(Map<String, Object> attributes )
	{
		if( attributes == null || attributes.size() <= 0 )
			return ;
		for( Map.Entry<String, Object> entry : attributes.entrySet() )
			this.setAttribute(entry.getKey(), entry.getValue() ) ;
	}
}
